package com.kaifamiao.N0729;

public class Test1 {

    public static void main(String[] args) {

        Pet pet = new Pet();
        pet = new Dog();
        pet.toHospital();
        pet = new Bird();
        pet.toHospital();

    }
}
